﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace LastoRevival.Service.Contracts.Models
{
	public abstract class PostModelBase
	{
		public int UserID { get; set; }

		public int PostID { get; set; }

		[Required(ErrorMessageResourceType = typeof(ValidationMessageLoader), ErrorMessageResourceName = "Post_SubjectRequiredError")]
		[StringLength(StringLengthConstants.SubjectMaxLength, ErrorMessageResourceType = typeof(ValidationMessageLoader), ErrorMessageResourceName = "StringLengthError")]
		[AllowHtml] // disables the explosion if there is HTML in this field
		public string Subject { get; set; }

		[AllowHtml] // disables the explosion if there is HTML in this field
		public string Body { get; set; }

		public bool Sticky { get; set; }

		public bool Locked { get; set; }

		public int ForumID { get; set; }

	}
}
